<div class="projects view">
<h2><?php  echo __($project['Project']['name']); ?></h2>
	<dl>
		<dt><?php echo __('Descripción'); ?></dt>
		<dd>
			<?php echo h($project['Project']['description']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Fecha Inicio'); ?></dt>
		<dd>
			<?php echo h($project['Project']['init_date']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Fecha Termino'); ?></dt>
		<dd>
			<?php echo h($project['Project']['finish_date']); ?>
			&nbsp;
		</dd>
		
		<!--dt><?php echo __('Grupo Asociado'); ?></dt>
		<dd>
			<?php echo $this->Html->link($project['UserGroup']['name'], array('controller' => 'user_groups', 'action' => 'view', $project['UserGroup']['id'])); ?>
			&nbsp;
		</dd-->
	</dl>

	<div class="related">
	<h3><?php echo __('Etapas Del Proyecto'); ?></h3>
	<?php if (!empty($project['Stage'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Nombre'); ?></th>
		<th><?php echo __('Descripción'); ?></th>
		<th><?php echo __('Fecha Inicio'); ?></th>
		<th><?php echo __('Fecha Termino'); ?></th>
		<th class="actions"><?php echo __(''); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($project['Stage'] as $stage): ?>
		<tr>
			<td>
			<?php echo $this->Html->link($stage['name'], array('controller' => 'stages', 'action' => 'view', $stage['id'])); ?>
			&nbsp;
			</td>
			<td><?php echo $stage['description']; ?></td>
			<td><?php echo $stage['init_date']; ?></td>
			<td><?php echo $stage['finish_date']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Editar'), array('controller' => 'stages', 'action' => 'edit', $stage['id'])); ?>
				<?php echo $this->Form->postLink(__('Eliminar'), array('controller' => 'stages', 'action' => 'delete', $stage['id']), null, __('Estas Seguro de Eliminar Etapa # %s?', $stage['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Form->postLink(__('Nueva Etapa'), array('action' => 'addStage',$project['Project']['id'])); ?> </li>
		</ul>
	</div>
</div>
</div>
<div class="actions">
	<h3><?php echo __('Acciones'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Editar Proyecto'), array('action' => 'edit', $project['Project']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Eliminar Proyecto'), array('action' => 'delete', $project['Project']['id']), null, __('Esta Seguro de eliminar Proyecto # %s?', $project['Project']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Listar Proyectos'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nuevo Proyecto'), array('action' => 'add')); ?> </li>
		<!--li><?php echo $this->Html->link(__('Listar Usuario Grupo'), array('controller' => 'user_groups', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nuevo Usuario grupo'), array('controller' => 'user_groups', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Listar Etapas'), array('controller' => 'stages', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nueva Etapa'), array('controller' => 'stages', 'action' => 'add')); ?> </li-->
	</ul>
</div>

